"""
时间计算
"""
from datetime import *

start = datetime(2025,5,14,14,22,32)

# end = datetime(2025,5,15,15,32,5)
#
# print(end - start)

print(start)
# 自定义时间差
time = timedelta(days=1)
print(time)

print(start+time)
print("===============")
print(time.total_seconds()) # 转换成纯秒计算，返回浮点值类型
print(type(time.total_seconds()))

